import * as Cesium from "cesium";

export class SpacialTool {
  static winPoint2Cartesian3(winPoint: Cesium.Cartesian2, viewer: Cesium.Viewer) {
    const ray = viewer.camera.getPickRay(winPoint);
    return viewer.scene.globe.pick(ray!, viewer.scene); // 获取点击的笛卡尔坐标
  }
}
